package com.woniuxy01;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-10-24 10:38
 */
public class Test05 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int score,sum=0,avg;
        for(int i=1;i<=3;i++){
            System.out.println("输入第"+i+"名学员的成绩");
            score=scanner.nextInt();
            sum+=score;
        }
        avg=sum/3;
        System.out.println("sum="+sum);
        System.out.println("avg="+avg);
    }
}
